﻿/****************************************************************
*   作者：Schme
*   CLR版本：4.0.30319.42000
*   创建时间：2017/4/19 16:21:59
*   2017
*   描述说明：注册
*
*   修改历史：
*
*
*****************************************************************/
using Abp.AutoMapper;
using Mt.Site.Core.Members;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Members.Dto.FrontEnd
{
    [AutoMapTo(typeof(MemberInfo))]
    public class RegisterMemberDto
    {
        /// <summary>
        /// 登陆账号
        /// </summary>
        [StringLength(Member.MaxLoginNameLength)]
        public string LoginName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(Member.MaxPasswordLength)]
        public string Password { get; set; }

        /// <summary>
        /// 名
        /// </summary>
        [StringLength(MemberInfo.MaxNameLength)]
        public string FirstName { get; set; }

        /// <summary>
        /// 姓
        /// </summary>
        [StringLength(MemberInfo.MaxNameLength)]
        public string LastName { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        [StringLength(MemberInfo.MaxPhoneLength)]
        public string Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(Member.MaxEmailLength)]
        public string Email { get; set; }

        /// <summary>
        /// 公司
        /// </summary>
        [StringLength(MemberInfo.MaxCompanyLength)]
        public string Company { get; set; }
        
        /// <summary>
        /// 邮编
        /// </summary>
        [StringLength(MemberInfo.MaxZipCodeLength)]
        public string ZipCode { get; set; }


        /// <summary>
        /// 职位
        /// </summary>
        [StringLength(MemberInfo.MaxJobTitleLength)]
        public string JobTitle { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(MemberInfo.MaxAddressLength)]
        public string Address { get; set; }

        /// <summary>
        /// 地址1
        /// </summary>
        [StringLength(MemberInfo.MaxAddressLength)]
        public string Address1 { get; set; }

        /// <summary>
        /// 国家
        /// </summary>
        [StringLength(MemberInfo.MaxCountryLength)]
        public string Country { get; set; }
        
        /// <summary>
        /// 省份
        /// </summary>
        [StringLength(MemberInfo.MaxAreaLength)]
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [StringLength(MemberInfo.MaxAreaLength)]
        public string City { get; set; }

        /// <summary>
        /// 网页
        /// </summary>
        [StringLength(100)]
        public string WebPage { get; set; }

        /// <summary>
        /// 传真
        /// </summary>
        [StringLength(MemberInfo.MaxFaxLength)]
        public string Fax { get; set; }
        
        /// <summary>
        /// 注册来源
        /// </summary>
        [StringLength(Member.MaxRegisterFormLength)]
        public string RegisterForm { get; set; }

        /// <summary>
        /// 是否接收信息
        /// </summary>
        public bool? IsReceive { get; set; }

        /// <summary>
        /// 注册IP
        /// </summary>
        [StringLength(Member.MaxIPLength)]
        public string IP { get; set; }
        public string valiCode { get; set; }

    }
}
